package cn.zqy.model;

import java.util.ArrayList;

public enum BookStatus
{
	ALL("","ALL[所有]"),
	IN ("IN","IN[在馆]"), 
	OUT("OUT","OUT[借出]");
	
	private String value;
	private String discription;
	
	
	BookStatus(String value,String discription)
	{
		this.value=value;
		this.discription=discription;
	}

	/**
	 * @return the value
	 */
	public String getValue()
	{
		return value;
	}

	/**
	 * @return the discription
	 */
	public String getDiscription()
	{
		return discription;
	}

	public ArrayList<String> getAllValue()
	{
		ArrayList<String> valueList=new ArrayList<String>();
		for(BookStatus status:BookStatus.values())
		{
			valueList.add(status.getValue());
		}
		return valueList;		
	}
	
	public ArrayList<String> getAllDesc()
	{
		ArrayList<String> descList=new ArrayList<String>();
		for(BookStatus status:BookStatus.values())
		{
			descList.add(status.getDiscription());
		}
		return descList;
	}
}
